package t1;

/**
 * @Author: 582895699@qq.com
 * @Desctription: TODO
 * @Date: Created in 2021/11/29 21:22
 */
public class Soldier {

    private AbstractGun gun;


    public void setGun(AbstractGun gun) {
        this.gun = gun;
    }

    public void killEnemy() {
        System.out.println("士兵开始杀人");
        gun.shoot();
    }
}
